package com.jiangyg.mall.ware.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 类描述：锁定库存
 *
 * @author jiangyg
 * @version 4.0
 * @date 2022-12-15
 */
@Data
@EqualsAndHashCode
@NoArgsConstructor
public class WareLockStockDTO implements Serializable {

    private static final long serialVersionUID = -6237418938325389185L;

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * 收货人姓名
     */
    private String receiverName;

    /**
     * 收货人电话
     */
    private String receiverPhone;

    /**
     * 详细地址
     */
    private String receiverDetailAddress;

    /**
     * 订单备注
     */
    private String remark;

    /**
     * 工作单明细
     */
    private List<Detail> details;

    /**
     * 类描述：工作单明细
     */
    @Data
    @EqualsAndHashCode
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Detail implements Serializable {

        private static final long serialVersionUID = -2781471912134652158L;

        /**
         * 商品ID
         */
        private Long skuId;

        /**
         * 商品名称
         */
        private String skuName;

        /**
         * 购买个数
         */
        private Integer skuQuantity;

    }

}
